package com.lhy.service;

import com.lhy.domain.Department;
import org.springframework.stereotype.Repository;

import java.util.List;

/**
 * @author 汪
 */
public interface DepartmentService {
    /**
     * 展示所有科室
     * @return
     */
    List<Department> showAllDepartment();

    /**
     * 展示部分科室
     * @return
     */
    List<Department> findSomeDepartment(Department department);

    /**
     * 添加科室
     * @param department
     * @return
     */
    int addDepartment(Department department);

    /**
     * 删除用户
     * @param departId
     * @return
     */
    int deleteDepartment(Integer departId);

    /**
     * 修改信息
     * @param departId
     * @param name
     * @param old_departid
     * @return
     */
    int modifyDepartment(Integer departId,String name,Integer old_departid);
}
